package com.study.spmongodb.book.wwj.char10;

/**
 * @author MI
 * @version 1.0
 * @date 2020/11/26 17:57
 */
public class NameSpace {
    public static void main(String[] args) throws ClassNotFoundException {
        //获取系统类加载器
        final ClassLoader classLoader = NameSpace.class.getClassLoader();
        final Class<?> aClass = classLoader.loadClass("com.study.spmongodb.book.wwj.char10.NameSpace");
        final Class<?> bClass = classLoader.loadClass("com.study.spmongodb.book.wwj.char10.NameSpace");

        System.out.println(aClass.hashCode());
        System.out.println(bClass.hashCode());
        System.out.println(aClass == bClass);
    }
}
